<?php

namespace App\Exceptions;

use Exception;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Throwable;


class LocalizationException extends Exception
{

    /**
     * LocalizationException constructor.
     * @param string $message
     * @param array $params
     */
    public function __construct($message = "", $params = [])
    {
        $message = app('translator')->getFromJson($message, $params);
        parent::__construct($message);
    }
}
